# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class MigrationTask(object):

    def __init__(self, taskId=None, migrationType=None, status=None, startTime=None, endTime=None, duration=None, fileName=None):
        """
        :param taskId: (Optional) 迁移任务ID
        :param migrationType: (Optional) 迁移任务类型，大小写不敏感，FULL_IMPORT:全量数据导入
        :param status: (Optional) 任务状态
        :param startTime: (Optional) 任务开始时间
        :param endTime: (Optional) 任务结束时间
        :param duration: (Optional) 任务持续时间，单位分钟
        :param fileName: (Optional) 迁移的数据文件名，包含bucket的全路径，例如dbbak/my_erp/erp.tar.gz
        """

        self.taskId = taskId
        self.migrationType = migrationType
        self.status = status
        self.startTime = startTime
        self.endTime = endTime
        self.duration = duration
        self.fileName = fileName
